// jwt  解密  如读取手机号
const jwt = require("jsonwebtoken");
import {
  getCookie
} from "./getCookie"
async function jwtFun() {
  const value = await getCookie("TK")
  const obj = jwt.decode(value);
  const res = JSON.parse(obj.payload);
  return new Promise((resolve) => {
    resolve(res);
  });
}

export {
  jwtFun
}
